package com.shinechain;


import com.shinechain.model.BotMethodSwitch;
import com.shinechain.service.user.TelegramBotMethod;
import com.shinechain.service.user.impl.ProjectBotImpl;
import com.shinechain.service.user.impl.ProxyImpl;
import org.mybatis.spring.annotation.MapperScan;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

import java.util.Date;


@SpringBootApplication
@MapperScan("com.shinechain.dao")
public class Springboot2MybatisDemoApplication {



	public static void main(String[] args) {


	//	ProxyImpl  proxy = new ProxyImpl();
	//	proxy.init();


		ProjectBotImpl projectBot = new ProjectBotImpl();
		projectBot.init();
		SpringApplication.run(Springboot2MybatisDemoApplication.class ,args);
		//用controller控制这些
		ProjectBotImpl.getWorkBot().getThread().start();

	}
}
